using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Blood_Siege
{
    public class Game : Microsoft.Xna.Framework.Game
    {
        GraphicsDeviceManager graphics;
        StateManager CurrentStateManager;

        //The main game constructor.
        public Game()
        {
            Content.RootDirectory = "Content";

            graphics = new GraphicsDeviceManager(this);

            graphics.PreferredBackBufferWidth = 1250;
            graphics.PreferredBackBufferHeight = 623;

            // Create the screen manager component.
            CurrentStateManager = new StateManager(this);

            Components.Add(CurrentStateManager);

            // Activate the first screens.
            CurrentStateManager.AddScreen(new BackgroundScreen(), null);
            CurrentStateManager.AddScreen(new MainMenuScreen(), null);
        }

        //This is called when the game should draw itself.
        protected override void Draw(GameTime gameTime)
        {
            graphics.GraphicsDevice.Clear(Color.Black);

            // The real drawing happens inside the screen manager component.
            base.Draw(gameTime);
        }
    }
}
